$OpenBSD: patch-cmake_modules_FindPoppler_cmake,v 1.1.1.1 2013/04/24 18:34:39 zhuk Exp $
--- cmake/modules/FindPoppler.cmake.orig	Tue Oct 11 04:18:26 2011
+++ cmake/modules/FindPoppler.cmake	Tue Oct 11 04:19:22 2011
@@ -57,6 +57,10 @@ endif(NOT _poppler_version_bad)
 if (POPPLER_FOUND)
   include(CheckCXXSourceCompiles)
 
+  # Unbreak Qt4 linking after QT_USE_IMPORTED_TARGETS set in KDE config
+  set(QT_USE_IMPORTED_TARGETS FALSE)
+  find_package(Qt4)
+
   # check whether we're using poppler 0.6
   set(CMAKE_REQUIRED_INCLUDES ${POPPLER_INCLUDE_DIR} ${QT_INCLUDE_DIR})
   set(CMAKE_REQUIRED_LIBRARIES ${POPPLER_LIBRARY} ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} ${QT_QTXML_LIBRARY})
